package com.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.common.R;
import com.mall.entity.SmoothMallCart;
import com.mall.entity.SmoothMallOrder;
import com.mall.entity.VoucherOrder;
import com.mall.entity.dto.SmoothMallCartDto;
import com.mall.entity.dto.SmoothMallOrderDto;

import java.util.List;

public interface SmoothMallOrderService extends IService<SmoothMallOrder> {
    public boolean createOrder(SmoothMallOrder smoothMallOrder);
    public List<SmoothMallOrderDto> getDtoList();
    public boolean deleteOrderForOrderNo(String orderNo);
    public List<SmoothMallOrderDto> getAdminDtoList();
    public boolean orderDelivered(String orderNo);
    public boolean orderFinished(String orderNo);
    public R seckillVoucher(Long voucherId);
    public void createVoucherOrder(VoucherOrder voucherOrder);
}

